<html>
    <head></head>
    <body>
        <p><a href="<?php echo MANAGE_ACCOUNT_REDIRECT;?>"><?php echo MANAGE_ACCOUNT_REDIRECT;?></a> | <a href="<?php echo MODULE_LIST_LINK;?>"><?php echo MODULE_LIST_LINK;?> </a> | <a href="<?php echo MAIN_CATEGORY_LIST_LINK;?>"><?php echo MAIN_CATEGORY_LIST_LINK;?></a> | <a href="<?php echo SUB_CATEGORY_LIST_LINK;?>"><?php echo SUB_CATEGORY_LIST_LINK;?></a>
<?php
foreach($data['page']['sub_category_data'] as $key => $value){

?>
<fieldset id="current_module">
<label><?php echo $value['sub_category_title'];?> | <?php echo $value['main_category_title'];?> | <?php echo $value['module_title'];?></label>
<form method="post" action="<?php echo EDIT_SUB_CATEGORY_LINK;?>">
    <input type="hidden" name="csrf_token" value="<?php echo $data['page']['csrf_token'];?>"/>
    <input type="hidden" name="sub_category_name" value="<?php echo $value['sub_category_name'];?>"/>
               	<input name="edit_sub_category" id="edit_module" type="submit" 
                       value="<?php echo EDIT_CURRENT_SUB_CATEGORY;?>">
 </form>
<form method="post" action="<?php echo DELETE_SUB_CATEGORY_LINK;?>">
    <input type="hidden" name="csrf_token" value="<?php echo $data['page']['csrf_token'];?>"/>
    <input type="hidden" name="sub_category_name" value="<?php echo $value['sub_category_name'];?>"/>
               	<input name="delete_sub_category" id="delete_sub_category" type="submit" 
                       value="<?php echo DELETE_CURRENT_SUB_CATEGORY;?>">
 </form>

</fieldset>
<?php
}
?>
        <p><a href="<?php echo ADD_SUB_CATEGORY_LINK;?>" title="<?php echo ADD_SUB_CATEGORY_DESCRIPTION;?>" alt="<?php echo ADD_SUB_CATEGORY_DESCRIPTION;?>">
                <?php echo ADD_SUB_CATEGORY_DESCRIPTION;?>
            </a></p>
    </body>
</html>